package com.atguigu.mapper.product;

import com.atguigu.dto.product.ProductDto;
import com.atguigu.entity.product.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    void submit(Product product);

    void remove(Long productId);

    void updateById(Product product);

    Product findDetailById(Long productId);

    List<Product> findAll(ProductDto productDto);
}
